FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD activity-server-0.0.1-SNAPSHOT.jar app.jar
RUN sh -c 'touch /app.jar'\
    && apk add -U tzdata \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]